body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f9f5ff; /* 淡紫色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.register-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(156, 106, 222, 0.1); /* 淡紫色阴影 */
    width: 450px;
    border-top: 4px solid #9c6ade; /* 顶部紫色边框 */
}

.register-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0d0f0; /* 淡紫色边框 */
    border-radius: 4px;
    font-size: 16px;
    background-color: #fcfaff; /* 非常淡的紫色背景 */
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #9c6ade; /* 紫色焦点边框 */
    outline: none;
    box-shadow: 0 0 0 2px rgba(156, 106, 222, 0.2); /* 紫色光晕效果 */
    background-color: white;
}

.error-message {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    height: 20px;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #9c6ade; /* 紫色按钮 */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background-color: #8a5acd; /* 深一点的紫色悬停效果 */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(156, 106, 222, 0.2);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #9c6ade; /* 紫色链接 */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-footer a:hover {
    text-decoration: underline;
    color: #7d4ac1; /* 深紫色悬停 */
}

.password-strength {
    margin-top: 8px;
    height: 5px;
    background-color: #f0e6fa; /* 淡紫色背景 */
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
}

.strength-weak {
    background-color: #ff7875; /* 红色系弱密码 */
    width: 30%;
}

.strength-medium {
    background-color: #ffc069; /* 橙色系中等密码 */
    width: 60%;
}

.strength-strong {
    background-color: #73d13d; /* 绿色系强密码 */
    width: 100%;
}

/* 新增：验证码输入区域样式 */
.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 44px;
    background-color: #f0e6fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9c6ade;
    font-size: 14px;
    transition: all 0.3s;
}

.captcha-img:hover {
    background-color: #e0d0f0;
}

/* 新增：社交媒体登录按钮 */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #f0e6fa;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.wechat {
    background-color: #07C160;
}

.social-btn.qq {
    background-color: #12B7F5;
}

.social-btn.weibo {
    background-color: #E6162D;
}